import pymysql
import re

pymysql.connect()
with open('data/table.sql', 'r', encoding='utf-8') as f:
    print(''.join(re.findall('INSERT.+.;', f.read())))
